<?php
/**
 * 更新系统基本设置
 *
 * @author liwei
 * [ranknow bbs!] (C)2009-2015 ranknow.cn.
 * This is NOT a freeware, use is subject to license terms
 * @rcsfile   $RCSfile: update_settings.php,v $
 * @revision  $Revision: 0.1 $
 * @date  $Date: 2010/01/05 15:13:17 $
 */
require_once '../../config.inc.php';
include BBS_MDL_PATH . 'mdl_settings.php';
$setting_data = array();
clear_post($_POST['settings']);
dbConnect();
//printf_r($_POST['settings']);
if (update_setting($_POST['settings'])){
  echo 'ok';
}else{
  echo 'fail';
}
dbDisconnect();
?>